set hdlDir ../hdl
set tbDir ../sim/tb/
set workDir ../sim/work
set topModule dti_shftreg_tb

vlib $workDir
vmap work $workDir

vlog $hdlDir/*.v
vlog $tbDir/*.v

#compile and sim
vsim -novopt -wlf $topModule.wlf work.$topModule
add wave sim:/dti_shftreg_tb/*
run 200
 
#view wave
vsim -view $topModule.wlf
add wave /$topModule/*